<?php
require_once MODEL_DIR .'/Person.php';

class MainListPresenter extends Presenter {
    
    public function Setup() {
        $this->view->Set('JSONRPCURL', Dispatch::GetURL(array('page' => 'JSONRPC')));
        $this->view->Set('DeleteURL', Dispatch::GetURL(array('page' => 'delete')));
        
        $person = new Person;
        
        $this->view->Set('persons', $person->GetList());
    }
}
?>